#define _CRT_SECURE_NO_WARNINGS 1
#include<iostream>

using namespace std;

void swap(int& x, int& y)
{
    int t = x;
    x = y;
    y = t;
}

int main()
{
    int x, y;
    cin >> x >> y;
    swap(x, y);
    cout << x << ' ' << y;
    return 0;
}